home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NGService / Source / MMCell.h < prev    next >
Text File  |  1993-09-02  |  1KB  |  52 lines

  1. /*
  2.  *      You may freely copy, distribute and reuse the code
  3.  *      in this example.  Scott Anguish disclaims any warranty of
  4.  *      any kind, expressed or implied, as to its fitness
  5.  *      for any particular use.
  6.  *        Please keep this notice intact
  7.  *      Written by: Scott Anguish  sanguish@digifix.com
  8.  */
  9.  
  10. #import <objc/Object.h>
  11. #import <appkit/appkit.h>
  12. #import <libc.h>                      /* MAXPATHLEN */
  13. #import <objc/List.h>
  14.  
  15. @interface MMCell:Cell
  16. {
  17.     id MMView;
  18.     char attachmentName[MAXPATHLEN+1];
  19.     char attachmentPath[MAXPATHLEN+1];
  20.     int attachmentSize;
  21.     char *attachmentData;
  22.     id    theImage;
  23.     BOOL    displayContents;
  24.     BOOL uuencoded;
  25. }
  26.  
  27.  
  28. - free;
  29. - initFromFilename:(const char *)filename;
  30. - imageFromAttachment;
  31. - imageFromFilename:(const char *)filename;
  32.  
  33. - calcCellSize:(NXSize *)theSize;
  34. - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag;
  35.  
  36.  
  37. - write:(NXTypedStream *)stream;
  38. - read:(NXTypedStream *)stream;
  39.  
  40. - writeRichText:(NXStream *)stream forView:view;
  41. - readPrivate:(NXStream *)stream name:(char *)name;
  42. - readRichText:(NXStream *)stream forView:view;
  43.  
  44.  - (BOOL)trackMouse:(NXEvent *)theEvent 
  45.     inRect:(const NXRect *)cellFrame 
  46.     ofView:controlView;
  47. - drawInside: (const NXRect *)cellFrame inView:controlView;
  48. - uudecodeAttachment;
  49. - removeData;
  50.  
  51. @end
  52.